projects
/
project
/
mdnsd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7075533
)
cache: constify cache_record fields
author
Felix Fietkau
<
[email protected]
>
Tue, 3 Jun 2014 22:08:01 +0000
(
00:08
+0200)
committer
Felix Fietkau
<
[email protected]
>
Tue, 3 Jun 2014 22:08:01 +0000
(
00:08
+0200)
Signed-off-by: Felix Fietkau <
[email protected]
>
cache.h
patch
|
blob
|
history
ubus.c
patch
|
blob
|
history
diff --git
a/cache.h
b/cache.h
index 134a91eaa518a4327a1fecbd14422ec3fa3a1308..4e8a421e629c0b793a8f98ffec1db1edff2f4f6d 100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-29,14
+29,14
@@
struct cache_entry {
};
struct cache_record {
-
struct avl_node avl;
+ struct avl_node avl;
- char *record;
+ c
onst c
har *record;
uint16_t type;
uint32_t ttl;
int port;
- char *txt;
- uint8_t *rdata;
+ c
onst c
har *txt;
+
const
uint8_t *rdata;
uint16_t rdlength;
time_t time;
};
diff --git
a/ubus.c
b/ubus.c
index dd590afb804fe83a529709b3a4cb40b9c7a17712..67a4bab29686e8d768328c0dccb700ed219461d2 100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-47,7
+47,7
@@
static void
mdns_add_records(const char *name)
{
struct cache_record *r, *q = avl_find_element(&records, name, r, avl);
- char *txt;
+ c
onst c
har *txt;
char buffer[MAX_NAME_LEN];
if (!q)